// 获取流程图
import request from '@/utils/request'
export function getFlowPicture(data) {
    return request({
        url:'/flowable/display',
        method:'get',
        responseType:'blob',
        params:data
    })
    
}

// 获取联审单
export function getlsdList(data){
    return request({
        url:'/bpm/get/examination',
        method:'get',
        params:data
    })
}

// 获取项目信息
export function getProjectInfo(data){
    return request({
        url:'/flowable/project',
        method:'get',
        params:data
    })
}

// 获取办理过程的信息
export function getFlowInfo(data) {
    return request({
        url:'/flow/business/list',
        method:'get',
        params:data
    })
}

// 材料导航信息
export function getfjInfo(data) {
    return request({
        url:'/flowable/wjjList',
        method:'get',
        params:data
    })
}

// 统计的显示
export function getTotal() {
    return request({
        url:'/flowable/statistics',
        method:'get',
    })
}
//集体建设用地占用申请表
export function applyTable(data) {
    return request({
        url:'bpm/save/project',
        method:'post',
        data
    })
}

//发送中获取下一个办理人
export function getNextPerson(data){
    return  request({
        url:'/flow/getNextNode',
        method:"get",
        params:data
    })
}

//同意流程的接口
export function agree(data) {
    return request({
       url:'/flow/complete',
       method:'post',
       data
    })
}


//获取项目的接口
export function getApplicationInfo(data){
    return request({
        url:'/bpm/get/project',
        method:'get',
        params:data
    })
}

// 回退的节点的接口
export  function returnBack(data) {
    return request({
        url:'/back/getBackNode',
        method:'get',
        params:data
    })
}

// 回退的负责人
export function responseMan(data) {
    return request({
        url:'/back/getBackNodeUser',
        method:'get',
        params:data
    })
}

// 确认回退
export function confirmBack(data) {
    return request({
        url:'/back/back',
        method:'post',
        data
    })
}

// 查看转办人
export function transferperson(data) {
    return request({
        url:'/flow/transfer/list',
        method:'get',
        params:data
    })
}

// 查看确定转办
export function committransfer(data) {
    return request({
        url:'/flow/transfer/task',
        method:'post',
        data
    })
}